import { uniqueArr } from "./unique.mjs";
// uniqueArr
const array = [
  { id: "1", name: "Alice" },
  { id: 2, name: "Bob" },
  { id: 3, name: "Charlie" },
  { id: 2, name: "Bob" },
  { id: 4, name: "David" },
  { id: 1, name: "Alice" },
];
console.log(uniqueArr(array, "id"));
console.log(uniqueArr([1, 1, 2, 3, 1]));
console.log(uniqueArr(1));
